//
//  BanBu_EmoKeyboard.h
//  Koochat
//
//  Created by Wang Xj on 14-4-9.
//
//

#import <UIKit/UIKit.h>
#import "SCGIFImageView.h"

@protocol banBu_EmoKeyboardDelegate;

@interface BanBu_EmoKeyboard : UIView<UIScrollViewDelegate>

@property (assign, nonatomic) id<banBu_EmoKeyboardDelegate>delegate;
@property (retain, nonatomic) IBOutlet UIView * keyboardScrollView;         //表情主View

@property (retain, nonatomic) IBOutlet UIScrollView *emoTypeScrollView;     //表情种类
@property (retain, nonatomic) IBOutlet UIScrollView *defaultEmoScrollView;  //默认表情
@property (retain, nonatomic) IBOutlet UIScrollView *characterScrollView;   //字符表情
@property (retain, nonatomic) IBOutlet UIScrollView *EmoScrollView;         //下载或收藏的表情

@property (retain, nonatomic) IBOutlet UIPageControl *pageControl;

@property (retain, nonatomic) NSMutableArray * emoArr;  //下载的表情
@property (retain, nonatomic) NSMutableArray *inputedStr; //字符表情


//切换默认键盘：默认表情、收藏、字符键盘间切换
- (IBAction)changeDefaultKeyboard:(UIButton *)sender;

//发送消息
- (IBAction)sendEmo:(UIButton *)sender;

#pragma mark - 预览大图
@property (retain, nonatomic) NSDictionary * emoInfoDic;
@property (retain, nonatomic) IBOutlet UIView *showBigView;
@property (retain, nonatomic) IBOutlet UIImageView *backgroundImageView;
@property (retain, nonatomic) IBOutlet SCGIFImageView *BigView;


-(void)initWithEmo;
@end


@protocol banBu_EmoKeyboardDelegate <NSObject>

//发送表情
-(void)banBu_SmileView:(BanBu_EmoKeyboard *)smileView didInputSmile:(NSString *)inputStr isDelete:(BOOL)delete type:(int)type;

@end